package com.tg.service;

import com.tg.pojo.Friend;
import com.tg.pojo.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface FriendService {

    /**
     * 根据用户名查询好友
     * @param username
     * @return
     */
    List<User> friendInfoList(String username);

    /**
     * 删除好友
     * @param username
     * @param friendUsername
     * @return
     */
    boolean deleteFriend(String username, String friendUsername);

    boolean sendVerification(Friend friend);

    List<Friend> getVerificationList(String username);
}
